package GUI;
/**
 * Starts the GUI
 * @author Taylor Zielske
 */
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

import conference.TextParse;
/**
 * Creates the Conference Frame and starts the gui.
 */
public class EZConferencemain {
	public static void main(String[] args) throws IOException {
		startUp();
		ConferenceFrame s = new ConferenceFrame();
		s.start();
	}
	/**
	 * If the user.txt file is not found it will create one for you in the config.txt location
	 * @throws IOException
	 */
	private static void startUp() throws IOException{
		try {
			File config = new File (System.getProperty("user.dir") + File.separator + "config.txt");
			TextParse tp = new TextParse(config);
		}catch (Exception e ){
			FileWriter config = new FileWriter(System.getProperty("user.dir") + File.separator + "config.txt");
			BufferedWriter out = new BufferedWriter(config);
			  out.write(System.getProperty("user.dir") + File.separator);
			  out.close();
		}
	}

}
